package com.fcscs.cservice.ws.client.inroomservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.inroomservice.GetVersionsRequest;
import com.fcscs.cservice.ws.schema.inroomservice.GetVersionsResponse;

public class GetVersionsClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetVersionsClient.class);

	public GetVersionsResponse getVersion(GetVersionsRequest req) {
		GetVersionsResponse resp = (GetVersionsResponse)getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("---------- GetVersionsResponse: " + resp.getVersionList() == null ? 0 : resp.getVersionList().size());
		return resp;
	}
}
